import { defineStore } from 'pinia'
interface Index {
    key?: string,
    width: string 
}
export const useIndexStore = defineStore({
    id: 'index',
    state: ():Index =>{
        return {
            key: '',
            width: '100%'
        }
    },
    getters: {

    },
    actions: {
        setWidth(w:string){
            this.width = w;
        }
    }
})
export default useIndexStore